import { get, post_json } from '@/http/axios'
export default {
    namespaced: true,
    state: {
        // 全部收益数据
        profitData: [],


    },
    mutations: {
        SET_PROFITDATA(state, payload) {
            state.profitData = payload
        },



    },
    actions: {

        //    获取全部顾客收益数据
        async getAllProfitData({ commit }, payload) {
            let res = await get('/order/pageQuery', payload)
            commit('SET_PROFITDATA', res.data.data.list)
            // 获取重置数据
        },

    }
}